package com.lyl.servicelive.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyl.servicelive.controller.api.LiveCourseController;
import com.lyl.servicelive.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyl.servicelive.entity.Visitor;
import com.lyl.servicelive.entity.vo.LiveCourseApiFormVo;
import com.lyl.servicelive.entity.vo.LiveCourseFormVo;
import com.lyl.servicelive.entity.vo.LiveCourseVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 直播课程表 服务类
 * </p>
 *
 * @author 雷艳玲
 * @since 2022-07-05
 */
public interface CourseService extends IService<Course> {

    IPage<Course>  selectPage(Page<Course> pageParam);

    boolean save(LiveCourseFormVo liveCourseVo);

    boolean removeLive(Long id);

    LiveCourseFormVo getLiveCourseFormVo(Long id);

    boolean updateById(LiveCourseFormVo liveCourseVo);

    List<LiveCourseVo> findLatelyList();

    Map<String, Object> pageListWeb(Page<Course> pageParam);
}
